package com.cc.service.impl;

import com.cc.entity.Cart;
import com.cc.mapper.CartMapper;
import com.cc.service.CartService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program:
 * @ClassName:
 * @description:
 * @author: zgc
 * @date:
 * @Version 1.0
 **/
@Service
public class CartServiceImpl implements CartService {
    @Resource
    private CartMapper cartMapper;
    @Override
    public List<Cart> selectCart(Integer userId) {
        return cartMapper.selectCart(userId);
    }
}
